import request from '@/utils/request'


export function findListByPage(params) {
  return request({
    url: 'api/configpropertyserver/page',
    method: 'get',
    params
  })
}

export function findListByNoPage() {
  return request({
    url: 'api/configpropertyserver/nopage',
    method: 'get',
  })
}

export function findById(id) {
  return request({
    url: 'api/configpropertyserver' + '/' + id,
    method: 'get',
    id
  })
}


export function add(data) {
  return request({
    url: 'api/configpropertyserver',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: 'api/configpropertyserver',
    method: 'put',
    data
  })
}

export function del(id) {
  return request({
    url: 'api/configpropertyserver'  + '/' + id,
    method: 'delete',
    id
  })
}

export default {
  findListByPage,
  findListByNoPage,
  findById,
  add,
  edit,
  del
}
